from django.urls import path
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
from . import views

urlpatterns = [
    path('login/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
    path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
    path('register/', views.UserCreateView.as_view(), name='user_create'),
    path('profile/', views.UserProfileView.as_view(), name='user_profile'),
    path('roles/', views.RoleListView.as_view(), name='role_list'),
    path('permissions/', views.PermissionCheckView.as_view(), name='permission_check'),
]